﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Models;

namespace Workflow.Project
{
    public partial class ShowMainAndLog : System.Web.UI.Page
    {
        private PJSearchManager objPJSearchManager = new PJSearchManager();
        private WorkflowManager objWorkflowManager = new WorkflowManager();
        public List<ProjectMain> resultList = new List<ProjectMain>();
        protected void Page_Load(object sender, EventArgs e)
        {
            string mold = Request.QueryString["Mold"];
            string name = Request.QueryString["Name"];
            string createDate1 = Request.QueryString["CreateDate1"];
            string createDate2 = Request.QueryString["CreateDate2"];
            string pjType = Request.QueryString["PJType"];
            string moldType = Request.QueryString["MoldType"];
            string labelType = Request.QueryString["LabelType"];



            string[] pjTypes = pjType.Split(',');
            string[] moldTypes = moldType.Split(',');
            string[] labelTypes = labelType.Split(',');
            resultList = objPJSearchManager.GetMain(mold, name, createDate1, createDate2, pjTypes, moldTypes, labelTypes);
        }
    }
}